<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let per = {
      gender: '男',
      age: 14,
      hobby: '打游戏',
      say: function () {
        console.log('爱说话')
      },
      eat: function () {
        console.log('吃饭吃的多')
      }
    }
    per.say()
    per.eat()
  </script>
</body>
</html>